package day8;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * @author oldliu
 * @since 1.0
 */
public class FileRead2 {
    public static void main(String[] args) {
        try {
            InputStreamReader reader=new InputStreamReader(new FileInputStream("D:\\Documents\\桌面\\rent-freely-master\\free-room\\README.txt"));
            char c[]=new char[100];
            int len=0;
            while ((len=reader.read(c))!=-1){
                System.out.print(new String(c,0,len));
            }
            reader.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
